package com.softstao.guoyu.model.sale;

import java.io.Serializable;
import java.util.List;

/**
 * Created by vaikus on 2017/6/19.
 */

public class OrderDetail implements Serializable{

    public static final int UNCONFIRM = 0;
    public static final int UNPAY = 1;
    public static final int PAYED = 2;
    public static final int STOCKING = 3;
    public static final int SHIPPED = 4;
    public static final int CANCEL = 5;
    public static final int REFUNDING = 6;
    public static final int REFUNDED = 7;
    public static final int COMPLETED = 8;

    /**
     * orderCode : 324354781234
     * orderDate : 时间戳
     * state : 1
     * stateStr : 待确认
     * agentName : 张三
     * agentMobile : 137000000001
     * total : 3250.0
     * orderProductList : [{"name":"果语冰淇淋机","img":"www.baidu.com/binqilingji.png","num":30,"price":145},{"name":"果语酸奶机","img":"www.baidu.com/suannaiji.png","num":20,"price":135}]
     * consigneeInfo : {"name":"张三","address":"广东省广州市黄埔区光谱路58号","mobile":"13700000001"}
     * logisticsInfo : {"mode":"圆通快递","logisticsCode":"1238123812983"}
     * payInfo : {"way":"线下支付","payAmount":3275,"payRemark":"快快发货","payImg":"www.baidu.com/pay.png"}
     */

    private String orderCode;
    private long orderDate;
    private int state;
    private int isPay;
    private String stateStr;
    private String agentName;
    private String agentMobile;
    private float total;
    private String remark;
    private String cancelReason;
    private ConsigneeInfoBean consigneeInfo;
    private List<LogisticsInfoBean> logisticsInfo;
    private PayInfoBean payInfo;
    private List<OrderGoods> orderProductList;

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public long getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(long orderDate) {
        this.orderDate = orderDate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getIsPay() {
        return isPay;
    }

    public void setIsPay(int isPay) {
        this.isPay = isPay;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public String getAgentMobile() {
        return agentMobile;
    }

    public void setAgentMobile(String agentMobile) {
        this.agentMobile = agentMobile;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }

    public ConsigneeInfoBean getConsigneeInfo() {
        return consigneeInfo;
    }

    public void setConsigneeInfo(ConsigneeInfoBean consigneeInfo) {
        this.consigneeInfo = consigneeInfo;
    }

    public List<LogisticsInfoBean> getLogisticsInfo() {
        return logisticsInfo;
    }

    public void setLogisticsInfo(List<LogisticsInfoBean> logisticsInfo) {
        this.logisticsInfo = logisticsInfo;
    }

    public PayInfoBean getPayInfo() {
        return payInfo;
    }

    public void setPayInfo(PayInfoBean payInfo) {
        this.payInfo = payInfo;
    }

    public List<OrderGoods> getOrderProductList() {
        return orderProductList;
    }

    public void setOrderProductList(List<OrderGoods> orderProductList) {
        this.orderProductList = orderProductList;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public static class ConsigneeInfoBean implements Serializable{
        /**
         * name : 张三
         * address : 广东省广州市黄埔区光谱路58号
         * mobile : 13700000001
         */

        private String name;
        private String address;
        private String mobile;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }
    }

    public static class LogisticsInfoBean implements Serializable{
        /**
         * mode : 圆通快递
         * logisticsCode : 1238123812983
         */

        private String mode;
        private String logisticsCode;

        public String getMode() {
            return mode;
        }

        public void setMode(String mode) {
            this.mode = mode;
        }

        public String getLogisticsCode() {
            return logisticsCode;
        }

        public void setLogisticsCode(String logisticsCode) {
            this.logisticsCode = logisticsCode;
        }
    }

    public static class PayInfoBean implements Serializable{
        /**
         * way : 线下支付
         * payAmount : 3275.0
         * payRemark : 快快发货
         * payImg : www.baidu.com/pay.png
         */

        private String way;
        private float payAmount;
        private String payRemark;
        private List<String> payImg;

        public String getWay() {
            return way;
        }

        public void setWay(String way) {
            this.way = way;
        }

        public double getPayAmount() {
            return payAmount;
        }

        public void setPayAmount(float payAmount) {
            this.payAmount = payAmount;
        }

        public String getPayRemark() {
            return payRemark;
        }

        public void setPayRemark(String payRemark) {
            this.payRemark = payRemark;
        }

        public List<String> getPayImg() {
            return payImg;
        }

        public void setPayImg(List<String> payImg) {
            this.payImg = payImg;
        }
    }
}
